import request from '@/utils/request'

// 查询园区列表
export function listBuiPark(query) {
  return request({
    url: '/park/buiPark/list',
    method: 'get',
    params: query
  })
}

// 查询园区详细
export function getBuiPark(id) {
  return request({
    url: '/park/buiPark/' + id,
    method: 'get'
  })
}

// 新增园区
export function addBuiPark(data) {
  return request({
    url: '/park/buiPark',
    method: 'post',
    data: data
  })
}

// 修改园区
export function updateBuiPark(data) {
  return request({
    url: '/park/buiPark',
    method: 'put',
    data: data
  })
}

// 删除园区
export function delBuiPark(id) {
  return request({
    url: '/park/buiPark/' + id,
    method: 'delete'
  })
}
